Do('c.header');

    Do.ready( function(){
    
        

        $('._tiyan').click(function(){
          Do('userload',function(){
            if(window.USERDATA && window.USERDATA.isLogin){
              window.location.href='/type/product.php';
            } else {
              window.location.href='/register/?source=61933';
              //LOGREG.register({source:61933});
            }
          });
        });
        ( function(){
            var contents = $( "#speekContents").html().split( "-----");
            var code = '<li>\
                          <div class="avatar z blk5"><a href="javascript:;" class="icon-common"><img src="{0}" class="blk5"></a></div>\
                          <a href="javascript:;"><p class="xs3 tar"> <b>{1}</b>@{2}</p>\
                          <p class="xs2">{3}</p></a>\
                        </li>';
            var $container = $( ".speekContainer"),
                $arrow = $('.scroll .Dbtn').children();

            function rp( arr, code){
                $.each( arr, function( index, value){
                    code = code.replace( new RegExp( "\\{" + index + "\\}", "gi"), value);
                });
                return code;
            }

            for( var i = 0, len = contents.length; i < len; i += 2){
                var cnts = contents[ i].split( "|");
                var $div = $( "<div class='item'></div>").appendTo( $container);
                $div = $( "<ul class='xl'></ul>").appendTo( $div);

                $div.append( rp( cnts, code + ''));

                if( contents[ i + 1]){
                    cnts = contents[ i + 1].split( "|");
                    $div.append( rp( cnts, code + ''));
                }
            }
            $container.children().each(function(index){
               $(this).attr('data-ind',index);
            });
            new Movement({
                marg: $("#speek"),
                onMarquee: function( obj){
                    obj.easing.hor_animate( $container, obj.dir, function() {
                        obj.finishFn();
                        var ind = $container.children( ":first").data( "ind");
                        $arrow.removeClass( "on");
                        $arrow.eq( ind).addClass( "on");
                    });
                },
                //leftArrow: $( ".speek_prev"),
                //rightArrow: $( ".speek_next"),
                cirBtn : $arrow,
                timeout: 3000
            });
        })();
    });